package com.egao.common.module.cooperative.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 产教融合 项目记录
 * @author lym
 */
@ApiModel(description = "产教融合 项目记录")
@Data
@TableName("cooperative_project_record")
public class CooperativeProjectRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("项目ID")
    private Integer cooperativeProjectId;

    @ApiModelProperty("项目活动ID")
    private Integer cooperativeProjectActivityId;

    @ApiModelProperty("角色")
    private String role;

    @ApiModelProperty("操作")
    private String operate;

    @ApiModelProperty("操作说明")
    private String content;

    @ApiModelProperty("添加人")
    private Integer createBy;
    @ApiModelProperty("添加时间")
    private Date createTime;
    @ApiModelProperty("编辑时间")
    private Date updateTime;
    @ApiModelProperty("逻辑删除 0正常 1删除")
    @TableLogic
    private Integer deleted;

    public CooperativeProjectRecord() {

    }

    /**
     *
     * @param cooperativeProjectId 项目ID
     * @param cooperativeProjectActivityId 活动ID
     * @param role 角色
     * @param operate 操作内容
     */
    public CooperativeProjectRecord(Integer cooperativeProjectId, Integer cooperativeProjectActivityId, String role, String operate) {
        this. cooperativeProjectId = cooperativeProjectId;
        this. cooperativeProjectActivityId = cooperativeProjectActivityId;
        this. role = role;
        this. operate = operate;
    }

    /**
     *
     * @param cooperativeProjectId 项目ID
     * @param cooperativeProjectActivityId 活动ID
     * @param role 角色
     * @param operate 操作内容
     * @param content 操作说明
     */
    public CooperativeProjectRecord(Integer cooperativeProjectId, Integer cooperativeProjectActivityId, String role, String operate, String content) {
        this. cooperativeProjectId = cooperativeProjectId;
        this. cooperativeProjectActivityId = cooperativeProjectActivityId;
        this. role = role;
        this. operate = operate;
        this.content = content;
    }

}
